package com.tsd.jxc.stock.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.stock.entity.JxcStockOutbill;
import com.tsd.jxc.stock.entity.JxcStockOutbillExt;
import com.tsd.system.entity.SysUser;
import com.tsd.system.entity.SysUserExt;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcStockOutbill服务实现层接口
 *
 * @author Hillpool
 * @date 2022/07/29 15:06:33
 */
public interface JxcStockOutbillService {

    /**
     * 描述：根据id获取JxcStockOutbill
     *
     * @param id
     */
    JxcStockOutbill getJxcStockOutbillById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcStockOutbill
     *
     * @param sid
     */
    JxcStockOutbillExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcStockOutbill
     *
     * @param list
     */
    void deleteJxcStockOutbills(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcStockOutbill
     *
     * @param record
     * @param opUser
     */
    void saveJxcStockOutbill(JxcStockOutbillExt record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockOutbill
     *
     * @param params
     * @param page
     */
    List<JxcStockOutbillExt> findJxcStockOutbills(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcStockOutbill
     *
     * @param params
     */
    List<JxcStockOutbillExt> findJxcStockOutbills(Map<String, Object> params) throws Exception;

    void changeJxcStockOutBillAuditState(List<String> sidList, Integer state, SysUserExt opUser) throws Exception;

    void executeJxcStockOutbill(List<String> sidList, SysUserExt opUser) throws Exception;

    /**
     * 描述：导出-包含明细
     *
     * @param params
     * @param page
     * @return
     */
    List<JxcStockOutbillExt> findJxcStockOutbillsIncludeDetail(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：打印出库单
     *
     * @param sid
     * @return
     */
    JxcStockOutbillExt findJxcStockOutbillsDetailPositionBySid(String sid) throws Exception;

    List<JxcStockOutbillExt> queryJxcStockOutBillData4Print(List<String> sidList) throws Exception;

    List<JxcStockOutbillExt> queryBySrcSid(List<String> list, int dr);

    void cancelExecuteJxcStockOutbill(List<String> sidList, SysUserExt opUser) throws Exception;
}